package cn.frh.pet.domain;

import cn.frh.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 实体类：
 */
@Data
public class PetType extends BaseDomain{

    private String name;
    private String description;
    private String dirPath;
    /**
     * 父类型id
     */
    private Long pid;

    //用来装当前宠物下所有的二级宠物
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<PetType> children = new ArrayList<>();
}
